package cn.cdl.springcloud.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.cdl.springcloud.service.HelloService;

@Controller
public class HelloController {

	@Autowired
	HelloService helloService;
	
	@RequestMapping("/hi")
	@ResponseBody
	public String Hi(@RequestParam String name){
		return helloService.sayHi(name);
	}
	
}
